@import './base.less';
@import './normalize.less';

// 版心
.container {
    width: 1200px;
    height: 100%;
    margin: 0 auto;
}

.current {
    background-color: #ff6700 !important;
}

.fg {
    width: 155px;
    height: 99px;
    position: absolute;
    left: 216px;
    top: 45px;
}

// 头部
header {

    // 顶部导航栏
    .topbar {
        height: 40px;
        background-color: #333333;

        .container {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
            color: #b0b0b0;
            line-height: 40px;

            ul li {
                float: left;
                text-align: center;

                a {
                    display: inline-block;
                    color: #b0b0b0;
                }

                a:hover {
                    color: #fff;
                }

                span {
                    margin: 0 5px;
                }
            }

            // 左侧菜单导航
            .topbar-lt {
                flex: 5;

                // 下载app
                ul li:nth-last-child(3) {
                    a {
                        position: relative;

                        .download {
                            z-index: -1;
                            transition: all .2s;
                            position: absolute;
                            top: -110px;
                            left: 50%;
                            transform: translate(-50%);
                            width: 124px;
                            background-color: #ffffff;
                            box-sizing: border-box;
                            box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
                            padding: 15px 0;

                            img {
                                display: inline-block;
                                width: 90px;
                                height: 90px;
                            }

                            p {
                                font-size: 15px;
                                line-height: 15px;
                                color: #000;
                            }
                        }

                        &::before {
                            content: '';
                            width: 0;
                            height: 0;
                            border: 6px solid transparent;
                            border-bottom: 6px solid #fefefe;
                            display: none;
                            position: absolute;
                            top: 28px;
                            left: 50%;
                            transform: translate(-50%);
                        }
                    }

                    a:hover .download {
                        top: 40px;
                    }

                    a:hover {
                        &::before {
                            display: block;
                        }
                    }
                }
            }

            // 右侧菜单导航
            .topbar-rt {
                flex: 2;

                ul {
                    margin-left: 80px;

                    li {
                        span {
                            margin: 0 5px;
                        }
                    }
                }

                // 购物车
                .topbar-car {
                    float: right;
                    text-align: center;
                    width: 120px;
                    height: 40px;
                    background-color: #424242;

                    a {
                        width: 100%;
                        height: 100%;
                        color: #b0b0b0;

                        // 购物车图标
                        i {
                            margin-right: 5px;
                        }

                        // 购物车菜单
                        .cart-menu {
                            z-index: -1;
                            position: absolute;
                            top: -59px;
                            right: 167px;
                            width: 316px;
                            transition: all .2s;
                            background-color: #fff;
                            box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);

                            .message {
                                color: #000;
                                line-height: 100px;
                            }
                        }
                    }
                }

                .topbar-car:hover {
                    background-color: #fff;

                    .cart-menu {
                        top: 40px;
                    }

                    a {
                        color: red;
                    }
                }
            }
        }
    }

    // 底部导航栏
    .bottombar {
        position: absolute;
        left: 0;
        right: 0;
        z-index: -2;

        // 顶部菜单
        .bottombar-header {
            height: 100px;

            .container {
                display: flex;
                align-items: center;

                .header-logo {
                    border-radius: 20px;
                    width: 56px;
                    height: 56px;
                    font-size: 0;
                    background-color: tomato;

                    a {
                        display: block;
                        width: 100%;
                        height: 100%;
                    }

                    a::before {
                        content: '';
                        display: block;
                        height: 100%;
                        background: url('../img/logo.png') no-repeat 0 0;
                        background-size: 56px;
                    }
                }

                .header-nav {
                    flex: 3;
                    height: 100%;
                    padding: 12px 0 0 30px;
                    box-sizing: border-box;

                    ul {
                        height: 100%;

                        li {
                            float: left;
                            padding: 0 10px;
                            line-height: 76px;

                            a:hover {
                                color: #ff6700;
                            }
                        }

                        // 侧边栏和tab栏
                        li:first-child {
                            position: relative;

                            // 侧边栏
                            .aside {
                                box-sizing: border-box;
                                padding: 20px 0;
                                z-index: -2;
                                position: absolute;
                                left: -86px;
                                top: 88px;
                                width: 200px;
                                height: 460px;
                                background-color: rgba(0, 0, 0, .7);

                                li {
                                    padding: 0;
                                    box-sizing: border-box;
                                    width: 100%;
                                    line-height: 42px;

                                    a {
                                        box-sizing: border-box;
                                        padding-left: 30px;
                                        display: block;
                                        width: 100%;
                                        color: #fff;
                                        height: 100%;

                                        i {
                                            float: right;
                                            font-size: 12px;
                                            margin-right: 20px;
                                        }
                                    }

                                    a:hover {
                                        background-color: #ff6700;
                                    }
                                }
                            }
                        }
                    }

                }

                .header-search {
                    flex: 1;
                    height: 100%;
                    display: flex;
                    align-items: center;

                    input {
                        outline: none;
                        border: none;
                        height: 45px;
                    }

                    .search {
                        border: 1px solid #ccc;
                        width: 260px;
                        border-right: none;
                        text-indent: 10px;
                    }

                    .search-btn {
                        border: 1px solid #ccc;
                        background-color: #fff;
                        width: 50px;
                    }

                    .search-btn:hover {
                        background-color: #ff6700;
                        color: #fff;
                    }
                }
            }
        }

        // 底部tab列表
        .bottombar-tablist {
            display: none;
            border-top: 1px solid #ccc;
            box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
            height: 260px;
            background-color: #fff;

            .container {
                position: relative;
                padding-bottom: 15px;

                .item {
                    position: absolute;
                    padding: 30px 15px;
                    left: 0;
                    top: 0;
                    right: 0;
                    display: none;
                    height: 100%;

                    ul {
                        li {
                            float: left;
                            width: 195px;

                            .pic {
                                border-right: 1px solid #ccc;
                            }

                            .text {
                                margin-top: 20px;
                                text-align: center;

                                p {
                                    line-height: 25px;
                                }

                                .price {
                                    font-size: 14px;
                                    color: #ff6700;
                                }
                            }
                        }

                        li:last-child {
                            .pic {
                                border-right: none;
                            }
                        }
                    }
                }
            }
        }
    }
}

// home
.home-hero {
    position: absolute;
    z-index: -3;
    top: 140px;
    left: 0;
    right: 0;
    height: 460px;

    .container {
        position: relative;
        overflow: hidden;

        .home-swiper {
            position: relative;

            li {
                position: absolute;
                left: 0;
                top: 0;
                width: 1200px;

                img {
                    width: 1200px;
                    height: 460px;
                }
            }

        }

        .lfbtn,
        .rgbtn {
            text-align: center;
            line-height: 50px;
            width: 30px;
            height: 50px;
        }

        .lfbtn:hover,
        .rgbtn:hover {
            color: #fff;
            background-color: rgba(0, 0, 0, .2);
        }

        .lfbtn {
            position: absolute;
            left: 200px;
            top: 50%;
            transform: translateY(-50%);
        }

        .rgbtn {
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
        }

        .focuList {
            position: absolute;
            right: 50px;
            bottom: 22px;
            line-height: 20px;
            text-align: center;

            a {
                margin: 0 5px;
                display: inline-block;
                width: 10px;
                height: 10px;
                border-radius: 50%;
                background-color: #fff;
            }

        }

        // tab栏
        .header-tab {
            position: absolute;
            top: 0;
            left: 200px;
            height: 460px;
            width: 100%;
            box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);

            .item {
                padding: 5px 15px;
                display: none;
                position: absolute;
                z-index: 1;
                left: 0;
                top: 0;
                width: 100%;
                height: 100%;
                background-color: #fff;


                a {
                    float: left;
                    display: block;
                    width: 256px;
                    height: 76px;
                    display: flex;
                    align-items: center;

                    span:hover {
                        color: #ff6700;
                    }

                    span {
                        margin-left: 10px;
                    }
                }
            }
        }
    }
}

// home-sub
.home-sub {
    position: absolute;
    top: 615px;
    left: 0;
    right: 0;
    height: 170px;

    .container {
        display: flex;
        justify-content: space-between;

        .one {
            border-left: 1px solid #ccc;
            border-top: 1px solid #ccc;
            display: flex;
            flex-wrap: wrap;
            width: 210px;
            height: 100%;

            .item {
                flex-direction: column;
                font-size: 14px;
                display: flex;
                justify-content: center;
                align-items: center;
                box-sizing: border-box;
                width: 70px;
                height: 85px;
                border-right: 1px solid #ccc;
                border-bottom: 1px solid #ccc;
                background-color: #5f5750;
                color: #fff4d2;

                i {
                    margin-bottom: 5px;
                }
            }

        }

        .img {
            width: 316px;
            height: 100%;
        }
    }
}

// content
.content {
    position: absolute;
    top: 800px;
    left: 0;
    right: 0;
    background-color: #f5f5f5;

    .hr {
        width: 100%;
        height: 120px;
        margin: 20px 0;
    }

    .container {
        margin-bottom: 20px;

        h1 {
            font-weight: 300;
        }

        .top {
            height: 60px;
            display: flex;
            justify-content: space-between;
            align-items: center;

            .top-nav {

                ul {
                    li {
                        position: relative;
                        box-sizing: border-box;
                        margin-left: 30px;
                        float: left;

                        span {
                            margin-left: 10px;
                            font-size: 12px;
                        }
                    }

                    li:hover {
                        &::before {
                            position: absolute;
                            top: 20px;
                            left: 0;
                            width: 100%;
                            content: '';
                            display: block;
                            border-bottom: 2px solid #ff6700;
                        }

                        color: #ff6700;

                    }

                }
            }
        }

        .bottom {
            height: 100%;
            display: flex;
            justify-content: space-between;

            .left {
                width: 234px;
                height: 100%;

                .top {
                    width: 100%;
                    height: 300px;
                    background-color: tomato;
                    margin-bottom: 10px;
                }

                .bottom {
                    width: 100%;
                    height: 300px;
                    background-color: tomato;
                }
            }

            .right {
                perspective: 2000px;
                margin-left: 10px;
                flex: 1;
                display: flex;
                flex-wrap: wrap;
                align-content: space-between;
                justify-content: space-between;

                .card {
                    text-align: center;
                    width: 234px;
                    height: 300px;
                    background-color: #fff;
                    transition: all .5s;

                    img {
                        display: inline-block;
                        margin-top: 45px;
                        width: 150px;
                        margin-bottom: 10px;
                    }

                    .text {
                        margin: 5px 0;
                    }

                    .price {
                        color: #ff6700;
                    }
                }

                .card:hover {
                    transform: translateY(-5px);

                    box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04);
                }
            }
        }
    }

    .video {
        .bottom {
            .right {
                margin-left: -1px;

                .card {
                    width: 285px;
                    height: 250px;
                }
            }
        }
    }
}

// fixed-nav
.fixed-nav {
    z-index: 10;
    position: fixed;
    top: 100px;
    right: 0;
    background-color: #fff;
    width: 84px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04);

    .item {
        i {
            font-size: 30px !important;
        }

        border-bottom: 1px solid #ccc;

        color: rgb(136, 128, 128);
        height: 92px;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .back {
        i {
            font-size: 30px !important;
        }

        background-color: #fff;
        color: rgb(136, 128, 128);
        height: 92px;
        width: 100%;
        position: absolute;
        bottom: -112px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .back:hover {
        color: #ff6700;
    }

    .item:first-child {
        position: relative;

        .download {
            display: none;

            img {
                margin-bottom: 10px;
            }

            position: absolute;
            top: 0;
            right: 93px;
            text-align: center;
            padding: 15px 15px;
            background-color: #fff;
            box-shadow: 0 2px 4px rgba(0, 0, 0, .12),
            0 0 6px rgba(0, 0, 0, .04);
            width: 100px
        }
    }

    .item:first-child:hover .download {
        display: block;
    }

    .item:hover {
        color: #ff6700;
    }
}

// footer
footer {
    position: absolute;
    top: 5637px;
    left: 0;
    right: 0;

    .top {
        background-color: #ffffff;
        height: 329px;

        .top-title {
            height: 80px;
            border-bottom: 1px solid #ccc;

            ul {
                padding: 20px 0 40px 0;

                li {
                    box-sizing: border-box;
                    border-right: 1px solid #ccc;
                    float: left;
                    text-align: center;
                    width: 240px;
                }

                li:last-child {
                    border-right: none;
                }
            }
        }

        .top-list {
            margin-top: 50px;

            .left {
                float: left;

                dl {
                    float: left;
                    width: 150px;

                    dt {

                        margin-left: 39px;
                        margin-bottom: 20px;
                    }

                    dd {
                        text-align: left;
                    }
                }

                dl:last-child {
                    border-right: 1px solid black;
                }
            }

            .right {
                text-align: center;
                margin-top: 20px;
                float: left;
                margin-left: 30px;

                .phone {
                    font-size: 20px;
                    color: #ff6700;
                }

                button {
                    margin: 5px 0;
                    height: 30px;
                    outline: none;
                    border: 1px solid #ff6700;
                    background-color: #fff;
                }

            }

        }
    }

    .bottom {
        background-color: #fafafa;
        height: 263px;
        padding-top: 20px;

        .container {
            display: flex;

            .bottom-copy {
                margin-left: 10px;
                flex: 1;

                .topbar-lt {
                    ul {
                        li {
                            float: left;
                        }

                    }

                }

                p {
                    color: #ccc;
                    font-size: 12px;

                    a {
                        color: #ccc;
                        font-size: 12px;
                    }
                }

                img {
                    display: inline-block;
                    width: 100px;
                    height: 40px;
                }

            }
        }

        .slogan {
            text-align: center;
            position: absolute;
            bottom: 70px;
            left: 0;
            right: 0;
        }
    }

}